<script type="text/javascript" >
    stPublishToolbox.sortColumn();
    stPublishToolbox.shortAction();
       jQuery(document).ready(function(){
//           jQuery("#helpBtn a[rel^='prettyPhoto']")
           jQuery("#link a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook', keyboard_shortcuts: false});
  

        });

</script>
<div id="fb-root"></div>
<div class="w100p bgl">
    <div class="w100p bgr">
        <div class="inner_container">
           

            <table class="widefat" cellspacing="0" >
                <thead>
                    <tr>
                        <?php print_column_headers('stFacebookToolbox_stFacebookToolbox'); ?>
                    </tr>
                </thead>

                <tbody>
                <?php
                if (count($results) > 0) {
                    $tr_class = "";
                    $upload_data = wp_upload_dir();
                    foreach ($results as $result) {
                        if( empty($tr_class) || $tr_class == "class='bg_gray2'"){
                            $tr_class = "class='bg_gray1'";
                        }else{
                            $tr_class = "class='bg_gray2'";
                        }
                        echo "<tr id='$result->id' $tr_class >"
                        . "<td>" . $result->name
                        . "<div class=\"row-actions short_action\">";
                        echo "<span class='trash' short_action='delete' id='$result->id' confirm='Are you sure you want to delete this wall publish ?'>Trash </span>"
                        . "</div>"
                        . "</td>"
                        . "<td>";
                        echo (strlen($result->content) > 25)?substr($result->content,0,25).'...':$result->content ;
                        echo "</td>"
                        . "<td>" ;
                        echo ($result->published == 1)?'pending':'published' ;
                        echo "</td>"
                       . "<td>" . $result->time . "</td>"
                        . "<td>" . $result->created_date . "</td>"
                        . "<td>" . $result->last_update . "</td>"
                        . "</tr>"
                        ;
                    }
                }
                ?>
                </tbody>
            </table>
            <div class="page_d">
                <?php echo $pagination?>
                <div class="cl"></div>
            </div>

        </div>
    </div>
</div>